#!/usr/bin/env python




from SpectralMix import highlighted_subplot
import networkx as nx
import numpy as np

n=150
p_giant=1.0/(n-1)
p_conn=np.log(n)/float(n)
p = 0.006
G=nx.binomial_graph(n,p)
Gcc=nx.connected_component_subgraphs(G)
subgraph = Gcc[0]

print type(subgraph)
print subgraph

highlighted_subplot(G,[],[subgraph],show=True,title="my title")
